import request from '@/utils/request'

// 查询付款计划详情列表
export function listPayDetails(query) {
  return request({
    url: '/crm/payDetails/list',
    method: 'get',
    params: query
  })
}

// 查询付款计划详情详细
export function getPayDetails(payDetailsId) {
  return request({
    url: '/crm/payDetails/' + payDetailsId,
    method: 'get'
  })
}

// 新增付款计划详情
export function addPayDetails(data) {
  return request({
    url: '/crm/payDetails',
    method: 'post',
    data: data
  })
}

// 修改付款计划详情
export function updatePayDetails(data) {
  return request({
    url: '/crm/payDetails',
    method: 'put',
    data: data
  })
}

// 删除付款计划详情
export function delPayDetails(payDetailsId) {
  return request({
    url: '/crm/payDetails/' + payDetailsId,
    method: 'delete'
  })
}
